package main

import (
	RedisServer "cache-go/redis/server"
	"cache-go/tcp"
	"fmt"
)

func main() {
	host := "0.0.0.0"
	port := 6399
	err := tcp.ListenAndServeWithSignal(&tcp.Config{
		Address: fmt.Sprintf("%s:%d", host, port),
	}, RedisServer.MakeHandler())
	if err != nil {
		fmt.Println(err)
	}
}
